package com.gaogzhen.designPattern.twoPhraseTermination;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.TimeUnit;

@Slf4j(topic = "c.Test01")
public class Test01 {
    public static void main(String[] args) throws InterruptedException {
        TwoPhraseTermination tpt = new TwoPhraseTermination();
        tpt.start();

        TimeUnit.MILLISECONDS.sleep(3500);
        log.debug("停止监控线程...");
        tpt.stop();
    }
}
